package com.liuwei.msmall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Classname ThreadPoolProperties
 * @Description TODO
 * @Date 2020/6/23 15:39
 * @Created by 刘
 */

/**
 * 配线程池的配置类
 */

@ConfigurationProperties(prefix = "msmall.threadpool")
@Component
@Data
public class ThreadPoolProperties {
    /**
     * 将以下属性配置到配置文件中
     * 可以使用配置文件进行配置
     * int corePoolSize,
     int maximumPoolSize,
     long keepAliveTime,

     */
    private int corePoolSize;
    private int maximumPoolSize;
    private long keepAliveTime;


}
